package com.czxy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 企业表
 * </p>
 *
 * @author xuewen
 * @since 2022-01-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TbEnterprise对象", description="企业表")
public class TbEnterprise implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "企业名称")
    private String name;

    @ApiModelProperty(value = "企业描述")
    @TableField(value = "`desc`")
    private String desc;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "企业性质id")
    private Integer natureId;

    @ApiModelProperty(value = "负责人")
    private String chargePerson;

    @ApiModelProperty(value = "负责人电话")
    private String chargePhone;

    @ApiModelProperty(value = "企业电话")
    private String enPhone;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date updateTime;

    @ApiModelProperty(value = "工商注册号")
    private String registrationNo;

    @ApiModelProperty(value = "企业状态")
    private Integer state;

    @ApiModelProperty(value = "企业性质对象")
    @TableField(exist = false)
    private TbEnNature tbEnNature;

    @ApiModelProperty(value = "企业图片")
    @TableField(exist = false)
    private List<TbPhoto> tbPhotoList;

    @ApiModelProperty(value = "企业id")
    private Integer userId;

    @TableField(exist = false)
    private TbPhoto tbPhoto;

    @TableField(exist = false)
    private TbUser tbUser;
}

